Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat #91] 알림 목록/읽기 API #97

Merged
merged 47 commits into from
Sep 2, 2024
Merged

[feat #91] 알림 목록/읽기 API #97

merged 47 commits into from
Sep 2, 2024

Conversation

dudxo
Copy link
Collaborator

@dudxo dudxo commented Sep 1, 2024

관련 이슈

📑 작업 상세 내용

  • 댓글, 채택 시 알림 생성 로직 추가
  • 알림 목록 API
    • 무한 스크롤 형태 알림 목록 QueryDSL 작성
    • 전체, 댓글, 채택, 채팅 필터링 쿼리 추가
  • 알림 읽음 API
    • 알림 소유주 검증
    • 알림 읽음 상태 검증

💫 작업 요약

  • 기존 댓글, 채택 로직에 알림 생성 로직 추가
  • 알림 목록 API 구현
  • 알림 읽음 여부(변화) API 구현

🔍 중점적으로 리뷰 할 부분

  • Security로 회원을 검증해도 해당 알림의 소유주가 자신인지에 대한 검증의 필요성을 느껴 추가했습니다.
  • 9/2 정기 회의 간 SSE 또는 FCM 기술 도입에 대해 이야기를 꺼내볼 생각입니다!

dudxo added 30 commits September 1, 2024 10:47
@dudxo dudxo added the ✨ feat 기능 추가 label Sep 1, 2024
@dudxo dudxo self-assigned this Sep 1, 2024
@dudxo dudxo linked an issue Sep 1, 2024 that may be closed by this pull request
2 tasks
Copy link

github-actions bot commented Sep 1, 2024

Test Results

 23 files   23 suites   13s ⏱️
104 tests 104 ✅ 0 💤 0 ❌
105 runs  105 ✅ 0 💤 0 ❌

Results for commit d3f666b.

♻️ This comment has been updated with latest results.

Copy link
Member

@hyun2371 hyun2371 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고 많으셨습니다! 특정 기간 이후에 알림을 테이블에서 삭제하는 스케줄러가 있으면 좋을 것 같아요~


private BooleanExpression targetTypeEq(String type) {
if (type == null || type.isEmpty() || "전체".equals(type)) {
return null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

알림을 타입별로 조회했을 때 어떠한 이점이 있는지, 알림 필터링 기능이 있는 타 서비스는 어떤게 있는지 궁금합니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

간편성..? 정도가 있다고 생각됩니다. 타 서비스에는 알림 필터링 기능들이 대부분 없지만 채팅과 게시글(답글, 채택) 관련 알림들이 한 곳에 모여 있는게 복잡해보이곘다 생각이 들어서요!

Copy link

github-actions bot commented Sep 2, 2024

Code Coverage

Overall Project 84.48% -0.88% 🍏
Files changed 89.46% 🍏

File Coverage
NotificationController.java 100% 🍏
Notification.java 100% 🍏
MemberCustomImpl.java 98.78% 🍏
NotificationCustomImpl.java 94.39% -5.61% 🍏
NotificationType.java 89.58% -10.42%
AnswerService.java 89.51% 🍏
NotificationService.java 72.84% -27.16% 🍏

@dudxo dudxo merged commit a0523bd into dev Sep 2, 2024
3 checks passed
@dudxo dudxo deleted the feat/#91/notification branch September 2, 2024 12:29
@dudxo dudxo restored the feat/#91/notification branch September 2, 2024 12:29
@dudxo dudxo deleted the feat/#91/notification branch September 2, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feat 기능 추가
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ 알림 API
2 participants